﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using JKF.DataModule.SqlServerDAL;

namespace JKF.BusinessLayer.BLL
{
    public partial class bllGIFTS
    {
        /// <summary>
        /// 获取礼品列表
        /// </summary>
        /// <param name="NAME">礼品名称</param>
        /// <param name="pageCurrent">当前页码</param>
        /// <param name="pageSize">一页显示多少</param>
        /// <param name="pageCount">总页数</param>
        /// <param name="rowCount">总记录数</param>
        /// <returns>返回DataTable数据</returns>
        public DataTable GetGiftsBLL(string NAME,string NEED_POINT_min, string NEED_POINT_max, int pageCurrent, int pageSize, ref int pageCount, ref int rowCount)
        {
            return dalGIFTS.GetGiftsDAL(NAME,NEED_POINT_min, NEED_POINT_max,pageCurrent, pageSize, ref pageCount, ref rowCount);
        }
        /// <summary>
        /// 判断是否存在此名称,true表示存在
        /// </summary>
        /// <param name="shop_name">店面名称</param>
        /// <returns></returns>
        public bool ExistsGiftsNameBLL(string gift_name)
        {
            return dalGIFTS.ExistsGiftsNameDAL(gift_name);
        }
        /// <summary>
        /// 事务删除礼品 
        /// </summary>
        /// <param name="gift_key">礼品  ID</param>
        /// <returns></returns>
        public  string TransactionSQLDeleteBLL(Guid gift_key)
        {
           return  dalGIFTS.TransactionSQLDeleteDAL(gift_key);
        }
    }
}
